package com.qpx.jxcupms.mapper;

import com.qpx.jxcupms.entity.TMenu;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mht
 * @since 2020-02-22
 */
public interface TMenuMapper extends BaseMapper<TMenu> {

    @Transactional(propagation = Propagation.NESTED)
    List<TMenu> getMenuByUserName(String name);
}
